<template>
  <div>
    <Zi1> </Zi1>
    <Qzi @adds="fq"></Qzi>
    <Qzi @adds="fq1"></Qzi>
    {{ ss }}
    {{ dd }}
    value值: {{ value }} value1值:{{ value1 }}
  </div>
</template>
<script>
import Zi1 from './Zi1.vue'
import Qzi from './Qzi.vue'
export default {
  name: '',
  inject: ['ss'],
  provide () {
    return {
      dd: this.dd,
      fd: this.fd
    }
  },
  components: {
    Zi1,
    Qzi
  },
  data () {
    return {
      dd: '我是爸爸',
      fd: this.fg,
      value: '',
      value1: ''
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    fg (e) {
      console.log('我是触发了的fg函数')
      this.dd = e
    },
    fq (e) {
      this.value = e
    },
    fq1 (e) {
      this.value1 = e
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
